<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
        <meta name="referrer" content="origin">
        <link rel="icon" href="/static/favicon.png?v={{$.Version}}">
        <link rel="apple-touch-icon" href="/static/favicon.png?v={{$.Version}}">

        <title>Subspace</title>

        <link rel="stylesheet" type="text/css" href="/static/semantic/semantic.min.css?v={{$.Version}}">
        <link rel="stylesheet" type="text/css" href="/static/style.css?v={{$.Version}}">
        <link rel="stylesheet" type="text/css" href="/static/roboto.css?v={{$.Version}}">

        <script src="/static/jquery.min.js?v={{$.Version}}"></script>
        <script src="/static/semantic/semantic.min.js?v={{$.Version}}"></script>
    </head>
    <body>

        <div class="borderless ui big green inverted menu">
            <div class="ui container">
                {{if and $.Backlink $.Admin}}
                    {{if $.User.Admin}}
                        <!-- don't show -->
                    {{else}}
                        <a class="item" href="{{.Backlink}}"><i class="home icon"></i></a>
                    {{end}}
                {{end}}
                <a href="/" class="{{if eq $.Section "index"}}active{{end}} item">Subspace</a>
                {{if $.Admin}}
                    <a href="/settings" class="{{if eq $.Section "settings"}}active{{end}} item">Settings</a>
                {{end}}

                {{if eq $.Section "signin" "forgot"}}
                    <!-- Don't show -->
                {{else}}
                    <div class="ui right dropdown item">
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="/help" class="{{if eq $.Section "help"}}active{{end}} item"><i class="help icon"></i>Help</a>
                            <a href="/signout" class="item confirm" data-prompt="Sign out?"><i class="sign out icon"></i>Sign out</a>
                        </div>
                    </div>
                {{end}}
            </div>
        </div>
        <div class="ui hidden divider"></div>
